package com.redis.midengxing;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

/**
 * 作者: LCG
 * 日期: 2020/7/6 23:46
 * 描述:
 */
@Configuration
public class CofigInterceptor extends WebMvcConfigurationSupport {

    @Autowired
    private MyMdxIntercepter myMdxIntercepter;

    @Override
    protected void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(myMdxIntercepter).addPathPatterns("/**");
    }
}
